﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Caca.MineSweeper
{
    public class MineField
    {
        public int Width { get; protected set; }
        public int Height { get; protected set; }
        public IList<Plot> Plots { get; protected set; }

        public MineField(int width, int height, IList<Plot> plots)
        {
            if (plots == null)
                throw new ArgumentNullException("plots");

            if (!(width > 0 && height > 0))
                throw new ArgumentOutOfRangeException("height or width must larger than 0");

            this.Width = width;
            this.Height = height;

            this.Plots = plots.ToList();
        }
    }
}
